<?php

header('Content-Type: application/xml; charset=utf-8' );
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Thu, 27 Mar 1975 07:38:00 GMT');
header('Last-Modified: ' . date('r'));
header('Pragma: no-cache');

$swfimages = array();



$d = dir("homeflash/");

while (false !== ($file = $d->read())) {
   if ( (substr($file,0,1) != '.') && ($file != 'CVS') && ($file != 'Thumbs.db') )  {
	   $swfimages[] = $file;
   }
}
$d->close();



echo '<?xml version="1.0" encoding="utf-8"?><bcaster>';

foreach($swfimages as $row){
	echo  '<item item_url="homeflash/'.$row.'"';

	//echo ' link="'.'index.php'.'" ';
	echo ' />';
}
echo '</bcaster>';

?>